import request from '@/utils/request'

// 查询健身目的列表
export function listFitnesspurposes(query) {
  return request({
    url: '/keep/fitnesspurposes/list',
    method: 'get',
    params: query
  })
}

// 查询健身目的详细
export function getFitnesspurposes(id) {
  return request({
    url: '/keep/fitnesspurposes/' + id,
    method: 'get'
  })
}

// 新增健身目的
export function addFitnesspurposes(data) {
  return request({
    url: '/keep/fitnesspurposes',
    method: 'post',
    data: data
  })
}

// 修改健身目的
export function updateFitnesspurposes(data) {
  return request({
    url: '/keep/fitnesspurposes',
    method: 'put',
    data: data
  })
}

// 删除健身目的
export function delFitnesspurposes(id) {
  return request({
    url: '/keep/fitnesspurposes/' + id,
    method: 'delete'
  })
}
